<template>
  <div class="title">
    <el-dialog
      :title="title"
      :visible.sync="addVisible"
      width="25%"
      :before-close="handleClose=false"
    >
      <el-form :model="addForm" :rules="addRules" ref="addRef">
        <el-form-item label="所属学科" prop="subjectID" size="small">
          <el-select v-model="addForm.subjectID" placeholder="请选择" class="dicwid" >
            <el-option v-for="item in simpleSub" :key="item.value" :label="item.label" :value="item.value"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="目录名称" prop="directoryName" size="small">
          <el-input v-model="addForm.directoryName" placeholder="请输入目录名称" class="dicwid" ></el-input>
        </el-form-item>
      </el-form>
      <span class="dialog-footer">
        <el-button @click="handleClose=false">取 消</el-button>
        <el-button type="primary" @click="addDirec">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: 'TitleName'
}
</script>

<style>

</style>
